home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / ConQuest / ConQuest1773.jar / c.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-05-31  |  3.0 KB  |  196 lines

  1. import com.siemens.mp.game.GraphicObject;
  2. import com.siemens.mp.game.Sprite;
  3.  
  4. // $FF: renamed from: c
  5. public class class_0 extends Sprite {
  6.    // $FF: renamed from: else int
  7.    public static final int field_0 = 3;
  8.    // $FF: renamed from: f int
  9.    public int field_1 = 138;
  10.    // $FF: renamed from: if int
  11.    public int field_2 = 16;
  12.    // $FF: renamed from: for int
  13.    public int field_3 = 16;
  14.    // $FF: renamed from: a int
  15.    public int field_4 = 4;
  16.    // $FF: renamed from: char int
  17.    public int field_5 = 1902;
  18.    // $FF: renamed from: null int
  19.    public int field_6;
  20.    // $FF: renamed from: d int
  21.    public static int field_7 = 3;
  22.    // $FF: renamed from: long int
  23.    public int field_8;
  24.    // $FF: renamed from: e byte[]
  25.    public static byte[] field_9;
  26.    // $FF: renamed from: h byte[]
  27.    public static byte[] field_10;
  28.    // $FF: renamed from: do byte
  29.    byte field_11;
  30.    // $FF: renamed from: byte boolean
  31.    public boolean field_12;
  32.    // $FF: renamed from: case int
  33.    public static int field_13 = 0;
  34.    // $FF: renamed from: g int
  35.    public static int field_14 = 0;
  36.    // $FF: renamed from: c int
  37.    public int field_15;
  38.    // $FF: renamed from: b int
  39.    public int field_16;
  40.    // $FF: renamed from: new int
  41.    public int field_17;
  42.    // $FF: renamed from: try int
  43.    public int field_18;
  44.    // $FF: renamed from: int int
  45.    public int field_19;
  46.    // $FF: renamed from: goto boolean
  47.    public boolean field_20;
  48.    // $FF: renamed from: void boolean
  49.    private boolean field_21;
  50.  
  51.    public class_0() throws Exception {
  52.       super(field_9, 0, 16, 16, field_10, 0, 7);
  53.       this.field_6 = this.field_5;
  54.       this.field_8 = 138;
  55.       this.field_11 = 3;
  56.       this.field_12 = false;
  57.       this.field_19 = 0;
  58.       this.field_20 = false;
  59.       this.field_21 = false;
  60.       ((Sprite)this).setCollisionRectangle(2, 0, 13, 16);
  61.    }
  62.  
  63.    // $FF: renamed from: a (int, int, int) void
  64.    public void method_0(int var1, int var2, int var3) {
  65.       this.field_15 = var2;
  66.       this.field_16 = var3;
  67.       this.field_1 = var3;
  68.       this.field_5 = var1;
  69.       this.field_6 = this.field_5;
  70.  
  71.       try {
  72.          ((Sprite)this).setPosition(this.field_15, this.field_16);
  73.          ((GraphicObject)this).setVisible(true);
  74.       } catch (Exception var5) {
  75.          ((Throwable)var5).printStackTrace();
  76.       }
  77.  
  78.       this.field_17 = 1;
  79.       this.field_12 = false;
  80.    }
  81.  
  82.    // $FF: renamed from: if () void
  83.    public void method_1() {
  84.       field_7 = 3;
  85.       field_13 = 0;
  86.       field_14 = 0;
  87.       this.field_19 = 0;
  88.    }
  89.  
  90.    // $FF: renamed from: a () void
  91.    public void method_2() {
  92.       switch (h.J) {
  93.          case 1:
  94.             if (h.G[this.field_5 + 1] == h.g || h.G[this.field_5] == h.g || h.G[this.field_5 + 2] == h.g || h.G[this.field_5 + 1] == h.Q || h.G[this.field_5 + 1] == h.r) {
  95.                if (Math.abs(h.z - this.field_16) < 40 && h.z - this.field_4 > h.n) {
  96.                   h.z -= this.field_4;
  97.                }
  98.  
  99.                if (h.G[this.field_5] == h.g) {
  100.                   this.field_6 = this.field_5--;
  101.                   ((Sprite)this).setPosition(((Sprite)this).getXPosition() - this.field_4, ((Sprite)this).getYPosition());
  102.                }
  103.  
  104.                if (h.G[this.field_5 + 2] == h.g) {
  105.                   this.field_6 = this.field_5++;
  106.                   ((Sprite)this).setPosition(((Sprite)this).getXPosition() + this.field_4, ((Sprite)this).getYPosition());
  107.                }
  108.  
  109.                this.field_6 = this.field_5;
  110.                this.field_5 -= h.t;
  111.                this.field_1 -= this.field_4;
  112.                this.field_16 -= this.field_4;
  113.                ((Sprite)this).setPosition(((Sprite)this).getXPosition(), ((Sprite)this).getYPosition() - this.field_4);
  114.                if (this.field_21) {
  115.                   this.field_17 = 5;
  116.                } else {
  117.                   this.field_17 = 6;
  118.                }
  119.  
  120.                this.field_21 ^= true;
  121.             }
  122.             break;
  123.          case 2:
  124.             if ((h.G[this.field_5 - 1 + h.t] == h.Q || h.G[this.field_5 - 1 + h.t] == h.r) && h.G[this.field_5 - 1] != h.Q && h.G[this.field_5 - 1] != h.r) {
  125.                if (Math.abs(h.A - this.field_15) < 40 && h.A - this.field_4 >= h.M) {
  126.                   h.A -= this.field_4;
  127.                }
  128.  
  129.                this.field_6 = this.field_5--;
  130.                this.field_15 -= this.field_4;
  131.                ((Sprite)this).setPosition(((Sprite)this).getXPosition() - this.field_4, ((Sprite)this).getYPosition());
  132.                if (this.field_21) {
  133.                   this.field_17 = 3;
  134.                } else {
  135.                   this.field_17 = 4;
  136.                }
  137.  
  138.                this.field_21 ^= true;
  139.             }
  140.          case 3:
  141.          case 4:
  142.          default:
  143.             break;
  144.          case 5:
  145.             if ((h.G[this.field_5 + 3 + h.t] == h.Q || h.G[this.field_5 + 3 + h.t] == h.r) && h.G[this.field_5 + 3] != h.Q && h.G[this.field_5 + 3] != h.r) {
  146.                if (Math.abs(h.A + h.char - this.field_15) < 50 && h.A + this.field_4 < h.L) {
  147.                   h.A += this.field_4;
  148.                }
  149.  
  150.                this.field_6 = this.field_5++;
  151.                this.field_15 += this.field_4;
  152.                ((Sprite)this).setPosition(((Sprite)this).getXPosition() + this.field_4, ((Sprite)this).getYPosition());
  153.                if (this.field_21) {
  154.                   this.field_17 = 1;
  155.                } else {
  156.                   this.field_17 = 2;
  157.                }
  158.  
  159.                this.field_21 ^= true;
  160.             }
  161.             break;
  162.          case 6:
  163.             if (this.field_5 + h.t < 2000 && this.field_1 < this.field_8 && (h.G[this.field_5 + 1] == h.g && h.G[this.field_5 + 1 + h.t] == h.g || h.G[this.field_5 + 1 + 2 * h.t] == h.g || h.G[this.field_5 + 2 * h.t] == h.g || h.G[this.field_5 + 2 + 2 * h.t] == h.g)) {
  164.                if (Math.abs(h.z + h.v - this.field_16) < 40 && h.z + this.field_4 <= h.o) {
  165.                   h.z += this.field_4;
  166.                }
  167.  
  168.                if (h.G[this.field_5 + 2 * h.t] == h.g) {
  169.                   this.field_6 = this.field_5--;
  170.                   ((Sprite)this).setPosition(((Sprite)this).getXPosition() - this.field_4, ((Sprite)this).getYPosition());
  171.                }
  172.  
  173.                if (h.G[this.field_5 + 2 + 2 * h.t] == h.g) {
  174.                   this.field_6 = this.field_5++;
  175.                   ((Sprite)this).setPosition(((Sprite)this).getXPosition() + this.field_4, ((Sprite)this).getYPosition());
  176.                }
  177.  
  178.                this.field_16 += this.field_4;
  179.                this.field_6 = this.field_5;
  180.                this.field_5 += h.t;
  181.                this.field_1 += this.field_4;
  182.                ((Sprite)this).setPosition(((Sprite)this).getXPosition(), ((Sprite)this).getYPosition() + this.field_4);
  183.                if (this.field_21) {
  184.                   this.field_17 = 5;
  185.                } else {
  186.                   this.field_17 = 6;
  187.                }
  188.  
  189.                this.field_21 ^= true;
  190.             }
  191.       }
  192.  
  193.       ((Sprite)this).setFrame(this.field_17);
  194.    }
  195. }
  196.